import request from '@/utils/request'
export default{
  addVideo(video) {
    return request({
      url: '/admin/edu/video/addVideo',
      method: 'post',
      data: video
    })
  },
  // 修改章节
  editVideo(video) {
    return request({
      url: '/admin/edu/video/editVideo',
      method: 'put',
      data: video
    })
  },
  // 查询章节
  getVideo(id) {
    return request({
      url: `/admin/edu/video/getVideoById/${id}`,
      method: 'get'
    })
  },
  // 删除章节
  deleteVideo(id) {
    return request({
      url: `/admin/edu/video/deleteVideo/${id}`,
      method: 'delete'
    })
  }

}
